﻿// EXP0507.cpp : 改写下列代码段中的错误。

//(a) if (ival1 != ival2)
//	ival1 = ival2						//加;
//	else
//	ival1 = ival2 = 0;
//(b) if (ival < minval)
//    minval = ival;					//多句组合用,
//	occurs = 1;
//(c) if (int ival = get_value())
//	cout << "ival = " << ival << endl;
//	if (!ival)							//用else
//	cout << "ival = 0\n";
//(d) if (ival = 0)						//相等比较用==
//ival = get_value();
//


//(a) if (ival1 != ival2)
//		ival1 = ival2;
//else
//		ival1 = ival2 = 0;
//
//(b)if (ival < minval)
//		minval = ival,occurs = 1;
//
//(c)if (int ival = get_value())
//		cout << "ival = " << ival << endl;
//	else
//		cout << "ival = 0\n";
//
//(d) if (ival ==0)
//		ival = get_value();
//








